package com.it.schoolbookshop_back.mapper;

import com.it.schoolbookshop_back.entities.po.Transaction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 交易Mapper接口
 */
@Mapper
public interface TransactionMapper {
    
    /**
     * 根据ID查询交易
     * @param id 交易ID
     * @return 交易信息
     */
    @Select("SELECT * FROM transactions WHERE id = #{id}")
    Transaction selectById(@Param("id") Integer id);
} 